package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName tourist
 */
@TableName(value = "tourist")
@Data
public class Tourist implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 游客名称
     */
    private String touristName;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 身份证
     */
    private String standing;

    /**
     * 性别
     */
    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 住址
     */
    private String address;

    /**
     * 借书时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT")
    private Date time;

    /**
     * 借书理由
     */
    private String argument;

    /**
     * 对接团队
     */
    private Integer teamId;

    /**
     * 团队人员
     */
    private String teamName;


    //状态
    private Integer status;

    @TableField(exist = false)
    private String beginTime;

    @TableField(exist = false)
    private String endTime;


    //分页
    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}